import React from 'react'
import { NavBar } from 'react-vant';
import { useNavigate } from 'react-router-dom';
import './index.scss'
const Index: React.FC = () => {
    const navigate = useNavigate();
    const tiao=()=>{
        navigate('/huanzhejia')
    }
    const user = JSON.parse(localStorage.getItem('user') as string )
    return (
        <div>
            <NavBar
                title="患者管理"
                leftText="返回"
                onClickLeft={() => navigate(-1)}
            />
            <div className='ziokok'>
                <div >
                    <p>患者名字：{user}</p>
                </div>
            </div>  
            <div> 
                <button className='di' onClick={tiao}>添加新患者</button>
            </div>
        </div>
    )
}

export default Index
